# -*- coding: utf-8 -*-

################################################################################
## Form generated from reading UI file 'mainwin_ui.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
                            QMetaObject, QObject, QPoint, QRect,
                            QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
                           QFont, QFontDatabase, QGradient, QIcon,
                           QImage, QKeySequence, QLinearGradient, QPainter,
                           QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QGridLayout, QHBoxLayout, QLabel,
                               QMainWindow, QSizePolicy, QSpacerItem, QStackedWidget,
                               QStatusBar, QToolButton, QVBoxLayout, QWidget)
import icon.icons


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(1080, 720)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.verticalLayout = QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.widget = QWidget(self.centralwidget)
        self.widget.setObjectName(u"widget")
        self.verticalLayout_2 = QVBoxLayout(self.widget)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName(u"verticalLayout_2")
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.topmenu = QWidget(self.widget)
        self.topmenu.setObjectName(u"topmenu")
        sizePolicy = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.topmenu.sizePolicy().hasHeightForWidth())
        self.topmenu.setSizePolicy(sizePolicy)
        self.topmenu.setMaximumSize(QSize(16777215, 35))
        self.topmenu.setStyleSheet(u"background-color: rgb(102, 193, 235);")
        self.gridLayout = QGridLayout(self.topmenu)
        self.gridLayout.setObjectName(u"gridLayout")
        self.gridLayout.setContentsMargins(18, 0, -1, 0)
        self.user = QToolButton(self.topmenu)
        self.user.setObjectName(u"user")
        icon = QIcon()
        icon.addFile(u":/users/mainwin-user.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
        self.user.setIcon(icon)
        self.user.setIconSize(QSize(25, 25))

        self.gridLayout.addWidget(self.user, 0, 0, 1, 1)

        self.close = QToolButton(self.topmenu)
        self.close.setObjectName(u"close")
        self.close.setStyleSheet(u"background-color: rgb(225, 95, 68);")
        icon1 = QIcon()
        icon1.addFile(u":/menus/close.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
        self.close.setIcon(icon1)
        self.close.setIconSize(QSize(20, 20))

        self.gridLayout.addWidget(self.close, 0, 6, 1, 1)

        self.expand = QToolButton(self.topmenu)
        self.expand.setObjectName(u"expand")
        self.expand.setStyleSheet(u"background-color: rgb(42, 92, 255);")
        icon2 = QIcon()
        icon2.addFile(u":/menus/expand.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
        self.expand.setIcon(icon2)
        self.expand.setIconSize(QSize(20, 20))

        self.gridLayout.addWidget(self.expand, 0, 4, 1, 1)

        self.menutable = QWidget(self.topmenu)
        self.menutable.setObjectName(u"menutable")
        self.menutable.setMaximumSize(QSize(700, 16777215))
        self.horizontalLayout = QHBoxLayout(self.menutable)
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.label = QLabel(self.menutable)
        self.label.setObjectName(u"label")
        font = QFont()
        font.setPointSize(15)
        self.label.setFont(font)

        self.horizontalLayout.addWidget(self.label)

        self.gridLayout.addWidget(self.menutable, 0, 2, 1, 1, Qt.AlignmentFlag.AlignHCenter)

        self.horizontalSpace = QSpacerItem(150, 20, QSizePolicy.Policy.Maximum, QSizePolicy.Policy.Minimum)

        self.gridLayout.addItem(self.horizontalSpace, 0, 1, 1, 1)

        self.reduce = QToolButton(self.topmenu)
        self.reduce.setObjectName(u"reduce")
        self.reduce.setStyleSheet(u"background-color: rgb(63, 183, 255);")
        icon3 = QIcon()
        icon3.addFile(u":/menus/reduce.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
        self.reduce.setIcon(icon3)
        self.reduce.setIconSize(QSize(20, 20))

        self.gridLayout.addWidget(self.reduce, 0, 3, 1, 1)

        self.verticalLayout_2.addWidget(self.topmenu)

        self.widget_3 = QWidget(self.widget)
        self.widget_3.setObjectName(u"widget_3")
        sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(14)
        sizePolicy1.setHeightForWidth(self.widget_3.sizePolicy().hasHeightForWidth())
        self.widget_3.setSizePolicy(sizePolicy1)
        self.widget_3.setStyleSheet(u"leftmenu{\n"
                                    "background-color: rgb(228, 228, 228);\n"
                                    "}")
        self.gridLayout_2 = QGridLayout(self.widget_3)
        self.gridLayout_2.setObjectName(u"gridLayout_2")
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.leftmenu = QWidget(self.widget_3)
        self.leftmenu.setObjectName(u"leftmenu")
        sizePolicy2 = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred)
        sizePolicy2.setHorizontalStretch(0)
        sizePolicy2.setVerticalStretch(0)
        sizePolicy2.setHeightForWidth(self.leftmenu.sizePolicy().hasHeightForWidth())
        self.leftmenu.setSizePolicy(sizePolicy2)
        self.leftmenu.setMinimumSize(QSize(65, 0))
        self.leftmenu.setMaximumSize(QSize(75, 16777215))
        self.leftmenu.setStyleSheet(u"QWidget{\n"
                                    "	background-color: rgb(228, 228, 228);  /* \u8bbe\u7f6e\u80cc\u666f\u8272\u4e3a\u7070\u8272 */\n"
                                    "}\n"
                                    "QToolButton{   \n"
                                    "	border-top: 3px outset transparent;           /* \u4e0a\u8fb9\u6846\u5bbd\u5ea63\u50cf\u7d20\u3001\u7a81\u51fa\u663e\u793a\u3001\u989c\u8272\u4e3a\u900f\u660e */\n"
                                    "	border-bottom: 7px outset transparent;\n"
                                    "	border-right: 3px outset transparent;\n"
                                    "	border-left: 3px outset transparent;\n"
                                    "    min-width: 55px;                            /* \u63a7\u4ef6\u6700\u5c0f\u5bbd\u5ea6 */\n"
                                    "    min-height: 55px;\n"
                                    "	background-color: rgb(228, 228, 228);\n"
                                    "}\n"
                                    "/* \u9f20\u6807\u60ac\u505c */\n"
                                    "QToolButton:hover{\n"
                                    "	background-color: rgb(205, 205, 205);\n"
                                    "}\n"
                                    "\n"
                                    "/* \u70b9\u51fb\u548c\u6309\u4e0b */\n"
                                    "QToolButton:pressed,QToolButton:checked{\n"
                                    "	border-left: 3px outset rgb(93, 95, 97);  /* \u5de6\u8fb9\u6846\u5bbd\u5ea63\u50cf\u7d20\u3001\u7a81\u51fa\u663e\u793a\u3001\u989c\u8272\u4e3a\u6df1\u6df1\u7070 */\n"
                                    "	background-color: rgb(200, 200, 200);	\n"
                                    "}\n"
                                    "\n"
                                    ""
                                    "QPushButton:default {\n"
                                    "    border-color: navy; /*\u9ed8\u8ba4\u6309\u94ae\u4fdd\u6301\u7a81\u51fa */\n"
                                    "}")
        self.verticalLayout_3 = QVBoxLayout(self.leftmenu)
        self.verticalLayout_3.setSpacing(2)
        self.verticalLayout_3.setObjectName(u"verticalLayout_3")
        self.verticalLayout_3.setContentsMargins(9, 0, 9, 0)
        self.menu = QToolButton(self.leftmenu)
        self.menu.setObjectName(u"menu")
        font1 = QFont()
        font1.setPointSize(12)
        self.menu.setFont(font1)
        icon4 = QIcon()
        icon4.addFile(u":/menus/menu.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
        self.menu.setIcon(icon4)
        self.menu.setIconSize(QSize(48, 48))
        self.menu.setCheckable(True)
        self.menu.setAutoExclusive(True)
        self.menu.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)

        self.verticalLayout_3.addWidget(self.menu)

        self.users = QToolButton(self.leftmenu)
        self.users.setObjectName(u"users")
        self.users.setFont(font1)
        icon5 = QIcon()
        icon5.addFile(u":/users/user.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
        self.users.setIcon(icon5)
        self.users.setIconSize(QSize(48, 48))
        self.users.setCheckable(True)
        self.users.setAutoExclusive(True)
        self.users.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)

        self.verticalLayout_3.addWidget(self.users)

        self.order = QToolButton(self.leftmenu)
        self.order.setObjectName(u"order")
        self.order.setFont(font1)
        icon6 = QIcon()
        icon6.addFile(u":/orders/order.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
        self.order.setIcon(icon6)
        self.order.setIconSize(QSize(48, 48))
        self.order.setCheckable(True)
        self.order.setAutoExclusive(True)
        self.order.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)

        self.verticalLayout_3.addWidget(self.order)

        self.device = QToolButton(self.leftmenu)
        self.device.setObjectName(u"device")
        self.device.setFont(font1)
        icon7 = QIcon()
        icon7.addFile(u":/devices/device.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
        self.device.setIcon(icon7)
        self.device.setIconSize(QSize(48, 48))
        self.device.setCheckable(True)
        self.device.setAutoExclusive(True)
        self.device.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)

        self.verticalLayout_3.addWidget(self.device)

        self.verticalSpacer = QSpacerItem(20, 340, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Maximum)

        self.verticalLayout_3.addItem(self.verticalSpacer)

        self.label_2 = QLabel(self.leftmenu)
        self.label_2.setObjectName(u"label_2")
        self.label_2.setMaximumSize(QSize(16777215, 20))

        self.verticalLayout_3.addWidget(self.label_2, 0, Qt.AlignmentFlag.AlignHCenter)

        self.gridLayout_2.addWidget(self.leftmenu, 0, 0, 1, 1, Qt.AlignmentFlag.AlignHCenter)

        self.stackedWidget = QStackedWidget(self.widget_3)
        self.stackedWidget.setObjectName(u"stackedWidget")

        self.gridLayout_2.addWidget(self.stackedWidget, 0, 1, 1, 1)

        self.verticalLayout_2.addWidget(self.widget_3)

        self.verticalLayout.addWidget(self.widget)

        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.close.clicked.connect(MainWindow.close)
        self.reduce.clicked.connect(MainWindow.showMinimized)

        self.stackedWidget.setCurrentIndex(-1)

        QMetaObject.connectSlotsByName(MainWindow)

    # setupUi

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
        self.user.setText(QCoreApplication.translate("MainWindow", u"...", None))
        self.close.setText(QCoreApplication.translate("MainWindow", u"...", None))
        self.expand.setText("")
        self.label.setText(QCoreApplication.translate("MainWindow", u"\u540e\u53f0\u7ba1\u7406\u4e2d\u5fc3", None))
        self.reduce.setText(QCoreApplication.translate("MainWindow", u"...", None))
        self.menu.setText(QCoreApplication.translate("MainWindow", u"  \u83dc\u5355\u680f", None))
        self.users.setText(QCoreApplication.translate("MainWindow", u"  \u7528\u6237\u7ba1\u7406", None))
        self.order.setText(QCoreApplication.translate("MainWindow", u"  \u8ba2\u5355", None))
        self.device.setText(QCoreApplication.translate("MainWindow", u"  \u8bbe\u5907", None))
        self.label_2.setText(QCoreApplication.translate("MainWindow", u"798\u6167\u751f\u6d3b", None))
    # retranslateUi


